package net.roseparadise.model;
// default package

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;



/**
 * Personality entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="tpersonality"
    ,catalog="studio"
)

public class Personality  implements java.io.Serializable {


    // Fields    

     private PersonalityId id;
     private Integer personalityorder;
     private String personalityname;
     private String personalitycontent;


    // Constructors

    /** default constructor */
    public Personality() {
    }

    
    /** full constructor */
    public Personality(PersonalityId id, Integer personalityorder, String personalityname, String personalitycontent) {
        this.id = id;
        this.personalityorder = personalityorder;
        this.personalityname = personalityname;
        this.personalitycontent = personalitycontent;
    }

   
    // Property accessors
    @EmbeddedId
    
    @AttributeOverrides( {
        @AttributeOverride(name="memberid", column=@Column(name="MEMBERID", nullable=false) ), 
        @AttributeOverride(name="personalityid", column=@Column(name="PERSONALITYID", nullable=false) ) } )

    public PersonalityId getId() {
        return this.id;
    }
    
    public void setId(PersonalityId id) {
        this.id = id;
    }
    
    @Column(name="PERSONALITYORDER", nullable=false)

    public Integer getPersonalityorder() {
        return this.personalityorder;
    }
    
    public void setPersonalityorder(Integer personalityorder) {
        this.personalityorder = personalityorder;
    }
    
    @Column(name="PERSONALITYNAME", nullable=false, length=30)

    public String getPersonalityname() {
        return this.personalityname;
    }
    
    public void setPersonalityname(String personalityname) {
        this.personalityname = personalityname;
    }
    
    @Column(name="PERSONALITYCONTENT", nullable=false, length=30)

    public String getPersonalitycontent() {
        return this.personalitycontent;
    }
    
    public void setPersonalitycontent(String personalitycontent) {
        this.personalitycontent = personalitycontent;
    }
   








}